package cn.qiao.demo.strategy;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年05月16日 22:24
 */
public class Test {

    public static void main(String[] args) {

        Pay alipayPay = new AlipayPay();
        Pay bankPay = new BankPay();
        Pay wechatPay = new WechatPay();

        MemberContext memberContext = new MemberContext(bankPay);
        System.out.println(memberContext.yesOrNo());
        System.out.println(wechatPay.pay());


    }


}
